package com.tianyu.inspection.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**********************************
 * @Author YSW
 * @Description 险情详情
 * @Date 2021/1/4 - 17:35
 **********************************/

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Danger implements Serializable {

    @TableId
    private Integer id;

    /**
     * 位置经度
     */
    private Double lng;

    /**
     * 位置纬度
     */
    private Double lat;

    /**
     * 地图险情位置标注图片
     */
    private String labelImage;

    /**
     * 险情处理状态[0 未指派, 1 处理中 ,2 已解决]
     */
    private Integer status;

    /**
     * 险情备注
     */
    private String remarks;

    /**
     * 险情类型ID
     */
    private Integer dangerTypeId;

    /**
     * 险情类型ID
     */
    private Integer dangerLevelId;

    /**
     * 发现险情的飞行任务ID
     */
    private Integer flyTaskId;

    /**
     * 险情所属项目ID
     */
    private Integer projectId;

    @JsonIgnore
    private Integer state;

    /**
     * 创建时间戳
     */
    private Date createTime;

    @JsonIgnore
    private Date modifyTime;

    @TableField(exist = false)
    private String sceneImage;

    @TableField(exist = false)
    private String sceneVideo;

    @TableField(exist = false)
    private String dealTime;

    @TableField(exist = false)
    private String description;

    @TableField(exist = false)
    private String typeName;

    @TableField(exist = false)
    private String typeIcon;

    @TableField(exist = false)
    private String levelName;

    @TableField(exist = false)
    private String levelIcon;

    @TableField(exist = false)
    private String levelIconClick;

    @TableField(exist = false)
    private List<Integer> inspectors;

    @TableField(exist = false)
    private List<DangerProcess> dangerProcessList;
}
